package com.luych.toolbox.data.service.entity;

import com.luych.toolbox.common.enums.DataTransporterHistoryTableStatus;
import com.luych.toolbox.common.service.base.BaseEntity;

import javax.persistence.*;

@Entity
@Table(name = "data_transporter_history_table")
public class DataTransporterHistoryTable extends BaseEntity {

    @Column(name = "data_transporter_history_id")
    private String dataTransporterHistoryId;
    @Column(name = "status")
    @Enumerated(EnumType.STRING)
    private DataTransporterHistoryTableStatus status;
    @Column(name = "table_from")
    private String tableFrom;
    @Column(name = "table_to")
    private String tableTo;
    @Column(name = "count_from")
    private long countFrom;
    @Column(name = "count_to")
    private long countTo;
    @Column(name = "count_transporter")
    private long countTransporter;

    public DataTransporterHistoryTableStatus getStatus() {
        return status;
    }

    public void setStatus(DataTransporterHistoryTableStatus status) {
        this.status = status;
    }

    public String getDataTransporterHistoryId() {
        return dataTransporterHistoryId;
    }

    public void setDataTransporterHistoryId(String dataTransporterHistoryId) {
        this.dataTransporterHistoryId = dataTransporterHistoryId;
    }

    public String getTableFrom() {
        return tableFrom;
    }

    public void setTableFrom(String tableFrom) {
        this.tableFrom = tableFrom;
    }

    public String getTableTo() {
        return tableTo;
    }

    public void setTableTo(String tableTo) {
        this.tableTo = tableTo;
    }

    public long getCountFrom() {
        return countFrom;
    }

    public void setCountFrom(long countFrom) {
        this.countFrom = countFrom;
    }

    public long getCountTo() {
        return countTo;
    }

    public void setCountTo(long countTo) {
        this.countTo = countTo;
    }

    public long getCountTransporter() {
        return countTransporter;
    }

    public void setCountTransporter(long countTransporter) {
        this.countTransporter = countTransporter;
    }

    public void addCountTransporter(long countTransporter) {
        this.countTransporter += countTransporter;
    }
}